package com.mk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Friend implements Serializable {

    /**
     * 状态（0未关注 1已关注）
     */
    public static final Integer ALREADY_CONCERNED = 1;
    public static final Integer UN_CONCERNED = 0;


    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    //当前用户id
    private Long userId;
    //好友的用户id
    private Long targetUserId;
    //状态（0未关注 1已关注，默认为0）
    private Integer status;
    //添加好友时间
    private LocalDateTime createTime;
}
